package com.yuyuan.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuyuan.blog.domain.dto.BlogDealDTO;
import com.yuyuan.blog.domain.po.BlogDeal;
import com.yuyuan.common.domain.Result;


import java.io.IOException;

/**
 * @Author: kestrel
 * @Version:1.0
 * @Date: 2024/5/29
 */
public interface IDealBlogService extends IService<BlogDeal> {
    Result publishDeal(BlogDealDTO blogDealDTO) throws InterruptedException;

    Result updateDeal(BlogDealDTO blogDealDTO, Long blogId) throws InterruptedException;

    Result getSingleDeal(Long blogId);

    Result getDeals(Long startId);

    Result getSearchDeals(String searchKeyWord, Short type) throws IOException;
}
